<?php

/* @var $factory \Illuminate\Database\Eloquent\Factory */

use Faker\Generator as Faker;

$factory->define(\App\Venue::class, function (Faker $faker) {

    // 栏目表随机排序，取出第一条记录
    $type = \App\Type::inRandomOrder()->first();

    return [
        "type_id"=>$type->id,
        'name' => $faker->sentence(5),
        "address"=>$faker->address,
        "pics"=>"img01.jpg,img02.jpg,img03.jpg",
        "num"=>rand(1,10),
        "des"=>$faker->text,
        'state' => 1,
    ];

});
